package message.mq.consumer;

import org.springframework.amqp.rabbit.annotation.*;
import org.springframework.stereotype.Component;

/**
 * .
 *
 * @author <a href="mailto:sunhao.java@gmail.com">sunhao(sunhao.java@gmail.com)</a>
 * @date 2018-08-02 16:07
 */
@Component
@RabbitListener(queues = "queue1")
public class TestReceiver1 {
    @RabbitHandler
    public void receive1(String value) {
        System.out.println("监听准备[receive1]：");
        System.out.println("get value is: " + value);
    }
}
